package com.eshop.modules.order.service.dto;

public class CountDto
{
    private String catename;
    
    public String getCatename() {
        return this.catename;
    }
    
    public void setCatename(final String catename) {
        this.catename = catename;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof CountDto)) {
            return false;
        }
        final CountDto other = (CountDto)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$catename = this.getCatename();
        final Object other$catename = other.getCatename();
        if (this$catename == null) {
            if (other$catename == null) {
                return true;
            }
        }
        else if (this$catename.equals(other$catename)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof CountDto;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $catename = this.getCatename();
        result = result * 59 + (($catename == null) ? 43 : $catename.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "CountDto(catename=" + this.getCatename() + ")";
    }
}
